<template>
  <div v-loading="loading" :style="'height:'+ height">
    <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: '3DDesk',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        src: 'http://talent.host.com:18080/webjs/product_3d/demo/ComprehensiveDemo/' + this.getVUEParams(""),
        height: document.documentElement.clientHeight - 94.5 + "px;",
        loading: true,
        rules: {}
      }
    },
    created() {},
    updated() {},
    mounted() {
      setTimeout(() => {
        this.loading = false;
      }, 230);
      const that = this;
      window.onresize = function temp() {
        that.height = document.documentElement.clientHeight - 94.5 + "px;";
      };
    },
    methods: {},
  }
</script>
